const getFullName = ({firstName, lastName}: INameInfo) => {
    return `${firstName} ${lastName}`;
};

getFullName({
    firstName: "haha",
    lastName: "li",
});

interface INameInfo {
    firstName: string;
    lastName: string;
}

interface IArrInter {
    0: number;
    1: string;
}
let arr: IArrInter = [1, "abc"];

type IAddFunc = (num1: number, num2: number ) => number;

interface IRoleDic {
    [id: number]: string;
}
const roleDic: IRoleDic = {0: "abc"};